<?php
$url=$this->baseUrl();
echo $this->doctype()
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    <head>
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <title><?php echo $this->titre; ?></title>
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $url ?>/public/css/site.css"/>
    </head>
    <body>
        <div id="haut">
            <a href="<?php echo $url?>">
                <img src="<?php echo $url?>/public/images/h.png" alt="Bannière" />
            </a>
        </div>
        
        <div id="menus">
            <ul id="onglets">
                <li class="<?php if($this->controleur=='index' && $this->action == 'index') echo "active"?>"><a href="<?php echo $url ?>/index"> Accueil </a></li>
                <li class="<?php if($this->controleur=='recent') echo "active"?>"><a href="<?php echo $url ?>/recent">Nouveautés</a></li>
                <li class="<?php if($this->controleur=='buzz') echo "active"?>"><a href="<?php echo $url ?>/buzz">Buzz</a></li>
                <li class="<?php if($this->controleur=='index' && $this->action == 'about') echo "active"?>"><a href="<?php echo $url ?>/index/about">À propos</a></li>
                <!--li class="<?php if($this->controleur=='suivi') echo "active"?>"><a href="<?php echo $url ?>/suivi"> Journalistes suivis </a></li>
                <li class="<?php if($this->controleur=='articles') echo "active"?>"><a href="<?php echo $url ?>/articles">Vos articles </a></li>
                <li class="<?php if($this->controleur=='options') echo "active"?>"><a href="<?php echo $url ?>/options">Options</a></li>
                <li class="<?php if($this->controleur=='compte') echo "active"?>"><a href="<?php echo $url ?>/compte">Mon compte</a></li>
                <li class="<?php if($this->controleur=='subscribe') echo "active"?>"><a href="<?php echo $url ?>/subscribe">S'inscrire</a></li>
                <li class="<?php if($this->controleur=='login') echo "active"?>"><a href="<?php echo $url ?>/login">Se connecter</a></li-->
            </ul>
        </div>
        <div id="searchbar">
            <form method="post" action="<?php echo  $url; ?>/articles/search">
                <input type="text" class="wide" name="search" value="Recherche" onfocus="javascript:this.value=''" />
                <input type="submit" name="submit" value="Go !" />
                <input type="button" name="article" value="Nouvel Article" onclick="window.location='<?php echo  $url; ?>/articles/new'" />
            </form>
        </div>

        <hr id="separator" />

        <div id="corps">
            <?php echo $this->layout()->content; ?>
        </div>

        <hr id="separator" />
        
        <div id="bas">
            <p>Copyleft UTT - IF16 - All rights detained by us !</p>
        </div>
    </body>
</html>
